﻿using System;
using UnityEditor;

namespace ProjScan.ScanRuleFixer.Utils
{
	// Token: 0x020002B3 RID: 691
	public class TextureTool
	{
		// Token: 0x060011DB RID: 4571 RVA: 0x00053EFC File Offset: 0x000520FC
		public static TextureImporterPlatformSettings GetPlatformTextureSetting(TextureImporter imp)
		{
			TextureImporterPlatformSettings platformTextureSettings = imp.GetPlatformTextureSettings(Tools.GetCurrentPlatform());
			bool overridden = platformTextureSettings.overridden;
			TextureImporterPlatformSettings result;
			if (overridden)
			{
				result = platformTextureSettings;
			}
			else
			{
				result = imp.GetDefaultPlatformTextureSettings();
			}
			return result;
		}
	}
}
